# JAVA基础镜像

FROM centos:latest
MAINTAINER zhoucl0220@gmail.com

RUN yum clean dbcache

RUN yum -y install iproute wget

RUN mkdir -p /data/opt

WORKDIR /data/opt

ADD jdk-8u60-linux-x64.tar.gz /data/opt

ENV JAVA_HOME /data/opt/jdk1.8.0_60

RUN echo "JAVA_HOME=/data/opt/jdk1.8.0_60" >> /etc/profile
RUN echo "export JAVA_HOME" >> /etc/profile
RUN echo "PATH=$PATH:$JAVA_HOME/bin" >> /etc/profile
RUN echo "export PATH" >> /etc/profile
RUN source /etc/profile


CMD ["/bin/bash"]
